#!/usr/bin/env python
# -*- coding: cp936 -*-

import cookielib, urllib2

cj = cookielib.CookieJar()

opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
response = opener.open("http://community.csdn.net/HomePage.aspx")
print response.headers
print "Got page"
#print "Currently have %d cookies" % len(jar)
#print jar

#print response.read()